package com.ssm.zy.mapper;

import com.ssm.zy.pojo.City;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CityMapper {
    //获取城市列表
    List<City> findCityByParentId(@Param("parentId") Integer parentId);
    //获取城市名字
    String getCituNameById(@Param("cid") Integer cid);
    //获取城市id
    Integer findAddress(@Param("cname") String cname);
}
